var chart;
$(document).ready(function() {

    var options = {
        chart: {
            renderTo: 'evolutionGraph',
            zoomType: 'x',
            spacingRight: 20
        },
        title: {
            text: ''
        },
        xAxis: {
            categories: categories
        },
        yAxis: {
            title: {
                text: 'Points'
            }
        },
        legend: {
             layout: 'vertical',
             align: 'top',
             verticalAlign: 'top',
             x: -10,
             y: 0,
             borderWidth: '2px'
        },
        series: [{
            name: 'Points mensuels FFTT',
            data: data
        }, {
            name: 'Points mensuels enregistrés',
            data: dataSavePoints
        }]
    };

    chart = new Highcharts.Chart(options);
});